package danny.hoi.service.export.stat.impl;

import com.alibaba.dubbo.config.annotation.Service;
import danny.hoi.dao.export.stat.StatDao;
import danny.hoi.service.export.stat.StatService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service(timeout = 1000000)
public class StatServiceImpl implements StatService {
    @Autowired
    private StatDao statDao;

    @Override
    public List<Map<String, Object>> getFactoryData(String companyId) {
        return statDao.getFactoryData(companyId);
    }

    @Override
    public List<Map<String, Object>> getSellData(String companyId, Integer top) {
        return statDao.getSellData(companyId, top);
    }

    @Override
    public List<Map<String, Object>> getOnlineData(String companyId) {
        return statDao.getOnlineData(companyId);
    }
}
